<?php

require_once dirname(__FILE__).'/../lib/questionGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/questionGeneratorHelper.class.php';

/**
 * question actions.
 *
 * @package    elearning
 * @subpackage question
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class questionActions extends autoQuestionActions
{
	//in edit mode edit or add question in list
	public function executeListEditQuestion( sfWebRequest $request )
	{
		//get curent object
		$m_question = $this->getRoute()->getObject();
		//send request answer
		$this->redirect('questionanswer/new?questid=' . $m_question->getId() );
	}
	//Khi them actions in file generator.yml khong ro tai sao lai mat nut cancel mac dinh
	public function executeListCancel( sfWebRequest $request )
	{
		//get curent object
		//$m_question = $this->getRoute()->getObject();
		//send request answer
		$this->redirect('question/index');//?questid=' . $m_question->getId() );
	}
}
